package com.jyw.system.domain.dto;

import com.jyw.common.utils.bean.BeanUtils;
import com.jyw.system.domain.SysUserTeam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 沈峻
 * @ClassName UserTeamLeaderEditDto
 * @Description TODO
 * @Date 2023/8/10 11:24
 **/
@ApiModel("小组组长设置")
@Data
public class UserTeamLeaderEditDto {

    @ApiModelProperty("关系主键")
    private Long id;

    @ApiModelProperty("组长 1是 0否")
    private Integer isLeader;


    public SysUserTeam buildUserTeam(){
        SysUserTeam userTeam = new SysUserTeam();
        BeanUtils.copyProperties(this,userTeam);
        return userTeam;
    }
}
